package ka
{
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	public final class KeepAlive extends Sprite
	{
		private var swfLoader:Loader;
		private const url:String="KeepActive.swf";
		
		public function KeepAlive()
		{
			super();
		}
		
		public function active():void
		{
			if(!swfLoader)
			{
				swfLoader=new Loader();
				
				swfLoader.load(new URLRequest(url));
			}
		}
		
		public function deactivate():void
		{
			if(swfLoader)
			{
				swfLoader.unloadAndStop(true);
				swfLoader=null;
			}
		}
	}
}